// function overloading - static polymorphism

# include <iostream>
using namespace std;

class Area {
  int radius, width, hight;
public:
  void get(int rad);
  void get(int wd, int ht);
  void get();
};

void Area::get() {
  cout << "Nothing to calculate!" << endl;
}

void Area::get(int rad) {
  cout << "Area of the circle: " << (rad * rad * 3.14) << endl;
}

void Area::get(int wd, int ht) {
  cout << "Area of the rectangle: " << (wd * ht) << endl;
}

int main() {
  int rad, wd, ht;
  cout << "Enter radius of the circle: ";
  cin >> rad;
  cout << "Enter width of the rectangle: ";
  cin >> wd;
  cout << "Enter hight of the rectangle: ";
  cin >> ht;
  Area ar;
  ar.get();
  ar.get(rad);
  ar.get(wd, ht);
}
